Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add should_skip setting to input constructors #2894

Closed
wants to merge 3 commits into from

Conversation

mgarrard
Copy link
Contributor

Summary:
Context: There are some cases where the input constructor returns n=o, specifically for repeat arms, this is currently causing an issue in generation strategy gen method because if we don't generate from a node we can't meet the TC, and move forward, however, we don't actually want to generate from that node.

This diff adds the setting of should skip to repeat_arm_n input constructor as it's currently the only input constructor that could enter a condition that creates a skippable node

Following diffs will:

  • update the gs to appropiately handle resetting to false after a gen is completed

Differential Revision: D64475782

@facebook-github-bot facebook-github-bot added the CLA Signed Do not delete this pull request or issue due to inactivity. label Oct 16, 2024
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D64475782

mgarrard added a commit to mgarrard/Ax that referenced this pull request Oct 16, 2024
Summary:




**Context:** There are some cases where the input constructor returns n=o, specifically for repeat arms, this is currently causing an issue in generation strategy gen method because if we don't generate from a node we can't meet the TC, and move forward, however, we don't actually want to generate from that node.

**This diff** adds the setting of should skip to repeat_arm_n input constructor as it's currently the only input constructor that could enter a condition that creates a skippable node

Following diffs will:
- update the gs to appropiately handle resetting to false after a gen is completed

Differential Revision: D64475782
mgarrard added a commit to mgarrard/Ax that referenced this pull request Oct 17, 2024
Summary:




**Context:** There are some cases where the input constructor returns n=o, specifically for repeat arms, this is currently causing an issue in generation strategy gen method because if we don't generate from a node we can't meet the TC, and move forward, however, we don't actually want to generate from that node.

**This diff** adds the setting of should skip to repeat_arm_n input constructor as it's currently the only input constructor that could enter a condition that creates a skippable node

Following diffs will:
- update the gs to appropiately handle resetting to false after a gen is completed

Reviewed By: lena-kashtelyan

Differential Revision: D64475782
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D64475782

mgarrard added a commit to mgarrard/Ax that referenced this pull request Oct 17, 2024
Summary:




**Context:** There are some cases where the input constructor returns n=o, specifically for repeat arms, this is currently causing an issue in generation strategy gen method because if we don't generate from a node we can't meet the TC, and move forward, however, we don't actually want to generate from that node.

**This diff** adds the setting of should skip to repeat_arm_n input constructor as it's currently the only input constructor that could enter a condition that creates a skippable node

Following diffs will:
- update the gs to appropiately handle resetting to false after a gen is completed

Reviewed By: lena-kashtelyan

Differential Revision: D64475782
@codecov-commenter
Copy link

codecov-commenter commented Oct 17, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 95.78%. Comparing base (52444a4) to head (791b95f).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2894   +/-   ##
=======================================
  Coverage   95.78%   95.78%           
=======================================
  Files         504      504           
  Lines       49790    49806   +16     
=======================================
+ Hits        47692    47708   +16     
  Misses       2098     2098           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

mgarrard added a commit to mgarrard/Ax that referenced this pull request Oct 17, 2024
Summary:




**Context:** There are some cases where the input constructor returns n=o, specifically for repeat arms, this is currently causing an issue in generation strategy gen method because if we don't generate from a node we can't meet the TC, and move forward, however, we don't actually want to generate from that node.

**This diff** adds the setting of should skip to repeat_arm_n input constructor as it's currently the only input constructor that could enter a condition that creates a skippable node

Following diffs will:
- update the gs to appropiately handle resetting to false after a gen is completed

Reviewed By: lena-kashtelyan

Differential Revision: D64475782
mgarrard added a commit to mgarrard/Ax that referenced this pull request Oct 17, 2024
Summary:




**Context:** There are some cases where the input constructor returns n=o, specifically for repeat arms, this is currently causing an issue in generation strategy gen method because if we don't generate from a node we can't meet the TC, and move forward, however, we don't actually want to generate from that node.

**This diff** adds the setting of should skip to repeat_arm_n input constructor as it's currently the only input constructor that could enter a condition that creates a skippable node

Following diffs will:
- update the gs to appropiately handle resetting to false after a gen is completed

Reviewed By: lena-kashtelyan

Differential Revision: D64475782
mgarrard added a commit to mgarrard/Ax that referenced this pull request Oct 17, 2024
Summary:




**Context:** There are some cases where the input constructor returns n=o, specifically for repeat arms, this is currently causing an issue in generation strategy gen method because if we don't generate from a node we can't meet the TC, and move forward, however, we don't actually want to generate from that node.

**This diff** adds the setting of should skip to repeat_arm_n input constructor as it's currently the only input constructor that could enter a condition that creates a skippable node

Following diffs will:
- update the gs to appropiately handle resetting to false after a gen is completed

Reviewed By: lena-kashtelyan

Differential Revision: D64475782
Summary:

There are some cases where the input constructor returns n=o, specifically for repeat arms, this is currently causing an issue in generaiton strategy gen method because if we don't generate from a node we can't meet the TC, and move forward, however, we don't actually want to generate from that node.

This simply exposes a prop on gen node to expose this, and default it to false

Following diffs will:
- update TC.is_met() to accept a GenNode instead of just the name
- update input constructor to properly set should skip
- update the gs to appropiately handle resetting to false after a gen is completed

Reviewed By: lena-kashtelyan

Differential Revision: D64444258
…ebook#2893)

Summary:

**Context:** There are some cases where the input constructor returns n=o, specifically for repeat arms, this is currently causing an issue in generation strategy gen method because if we don't generate from a node we can't meet the TC, and move forward, however, we don't actually want to generate from that node.

**This diff** updates tc.is_met() to accept a full generation node which allows us to access the should_skip property we added in the previous diff

Following diffs will:
- update input constructor to properly set should skip
- update the gs to appropiately handle resetting to false after a gen is completed

Reviewed By: lena-kashtelyan

Differential Revision: D64445871
Summary:




**Context:** There are some cases where the input constructor returns n=o, specifically for repeat arms, this is currently causing an issue in generation strategy gen method because if we don't generate from a node we can't meet the TC, and move forward, however, we don't actually want to generate from that node.

**This diff** adds the setting of should skip to repeat_arm_n input constructor as it's currently the only input constructor that could enter a condition that creates a skippable node

Following diffs will:
- update the gs to appropiately handle resetting to false after a gen is completed

Reviewed By: lena-kashtelyan

Differential Revision: D64475782
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D64475782

mgarrard added a commit to mgarrard/Ax that referenced this pull request Oct 17, 2024
Summary:




**Context:** There are some cases where the input constructor returns n=o, specifically for repeat arms, this is currently causing an issue in generation strategy gen method because if we don't generate from a node we can't meet the TC, and move forward, however, we don't actually want to generate from that node.

**This diff** adds the setting of should skip to repeat_arm_n input constructor as it's currently the only input constructor that could enter a condition that creates a skippable node

Following diffs will:
- update the gs to appropiately handle resetting to false after a gen is completed

Reviewed By: lena-kashtelyan

Differential Revision: D64475782
@facebook-github-bot
Copy link
Contributor

This pull request has been merged in a6ce2c3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed Do not delete this pull request or issue due to inactivity. fb-exported Merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants